import Vue from 'vue'
import Vuex from 'vuex'
import io from 'socket.io-client'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isUserLogin: false,
    userInfo: {}
  },
  getters: {
  },
  mutations: {
    loginSucceed(state, payload) {
      state.isUserLogin = payload.isUserLogin
      state.userInfo = payload
    }
  },
  actions: {
  },
  modules: {
  }
})
